package com.qf.pojo.respVo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: 陌人不故
 * @Date: 2022/10/25/12:02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseResp {

    private Integer code;
    private String msg;
    private Object data;
    private Long total;

    public static final BaseResp SUCCESS(String msg,Object data,Long total){
       return new BaseResp(1,msg,data,total);
    }

    public static final BaseResp FAIL(String msg){
        return new BaseResp(0,msg,null,null);
    }
}
